﻿using YNTK.Common.Const;
using SqlSugar;
using System;

namespace YNTK.SubDev.Entitys
{
    /// <summary>
    /// 流水记账
    /// </summary>
    [SugarTable("zy_oa_finwater")]
    [Tenant(ClaimConst.TENANT_ID)]
    public class ZyOaFinwaterEntity
    {
        /// <summary>
        /// 主键id
        /// </summary>
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
        public string Id { get; set; }
        
        /// <summary>
        /// 费用归口
        /// </summary>
        [SugarColumn(ColumnName = "Pro_Name")]        
        public string ProName { get; set; }
        
        /// <summary>
        /// 发生时间
        /// </summary>
        [SugarColumn(ColumnName = "HappenDate")]        
        public object HappenDate { get; set; }
        
        /// <summary>
        /// 类型ID
        /// </summary>
        [SugarColumn(ColumnName = "FinTypeID")]        
        public string FinTypeId { get; set; }
        
        /// <summary>
        /// 费用类型
        /// </summary>
        [SugarColumn(ColumnName = "FinType")]        
        public string FinType { get; set; }
        
        /// <summary>
        /// 总额(元)
        /// </summary>
        [SugarColumn(ColumnName = "BankAmount")]        
        public decimal BankAmount { get; set; }
        
        /// <summary>
        /// 入账金额(元)
        /// </summary>
        [SugarColumn(ColumnName = "InAmount")]        
        public decimal InAmount { get; set; }
        
        /// <summary>
        /// 出账金额(元)
        /// </summary>
        [SugarColumn(ColumnName = "OutAmount")]        
        public decimal OutAmount { get; set; }
        
        /// <summary>
        /// 余额(元)
        /// </summary>
        [SugarColumn(ColumnName = "BalanceAmount")]        
        public decimal BalanceAmount { get; set; }
        
        /// <summary>
        /// 经办人
        /// </summary>
        [SugarColumn(ColumnName = "DesPerson")]        
        public string DesPerson { get; set; }
        
        /// <summary>
        /// 协办成员
        /// </summary>
        [SugarColumn(ColumnName = "DesPersonName")]        
        public string DesPersonName { get; set; }
        
        /// <summary>
        /// 费用事由
        /// </summary>
        [SugarColumn(ColumnName = "Reason")]        
        public string Reason { get; set; }
        
        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnName = "Remark")]        
        public string Remark { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "Spare1")]        
        public string Spare1 { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "Spare2")]        
        public string Spare2 { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "Spare3")]        
        public string Spare3 { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "Spare4")]        
        public decimal Spare4 { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "Spare5")]        
        public decimal Spare5 { get; set; }
        
        /// <summary>
        /// 费用状态
        /// </summary>
        [SugarColumn(ColumnName = "State")]        
        public int? State { get; set; }
        
        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnName = "Creater")]        
        public string Creater { get; set; }
        
        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "CreateTime")]        
        public DateTime? CreateTime { get; set; }
        
        /// <summary>
        /// 最后修改人
        /// </summary>
        [SugarColumn(ColumnName = "Modifyer")]        
        public string Modifyer { get; set; }
        
        /// <summary>
        /// 修改时间
        /// </summary>
        [SugarColumn(ColumnName = "ModifyTime")]        
        public DateTime? ModifyTime { get; set; }
        
        /// <summary>
        /// 最新状态
        /// </summary>
        [SugarColumn(ColumnName = "LastTrackState")]        
        public string LastTrackState { get; set; }
        
    }
}
